<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        html,
        body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
        }

        .container {
            width: 100%;
            height: 100%;
            overflow-y: auto;
        }
        header{
            color: #fff;
            background-color: #000;
            position: sticky;
            top: 0;
        }

        ul {
            margin: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            border-bottom: 1px solid #999;
        }

        li {
            padding: 10px 40px;
            list-style: none;
        }

        li:hover {
            background-color: rgb(158, 200, 255);
        }
        main{
            height: 1000px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div>
            <img src="../image/1.jpg" alt="">
            <img src="../image/1.jpg" alt="">
        </div>
        <header>
            <ul>
                <li>菜单1</li>
                <li>菜单2</li>
                <li>菜单3</li>
                <li>菜单4</li>
                <li>菜单5</li>
            </ul>
        </header>
        <main>
            <img src="../image/2.jpg" alt="">
            <img src="../image/2.jpg" alt="">
        </main>
    </div>
</body>

</html>